package com.xaw.medicalcrane.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 群聊公告表
 * </p>
 *
 * @author
 * @since 2023-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GroupAnnouncement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 群公告主键id
     */
    @TableId(value = "group_announcement_id", type = IdType.AUTO)
    private Integer groupAnnouncementId;

    /**
     * 群聊表主键id
     */
    private Integer groupChatId;

    /**
     * 公告标题
     */
    private String announcementTitle;

    /**
     * 公告内容
     */
    private String announcementContent;

    /**
     * 公告图片
     */
    private String announcementPicture;

    /**
     * 公告创始人
     */
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 删除标识 0-存在 1-删除
     */
    @TableLogic
    private String deleteFlag;


}
